package com.example.lijuan.myapplication.Service;

import com.example.lijuan.myapplication.module.Trip;
import com.example.lijuan.myapplication.module.TripSummary;

import java.util.List;

import retrofit.Call;
import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Path;

/**
 * Created by nilesh on 10/13/2015.
 */
public interface TripServices {
    // "car/ifvsi/devices/CAR_A00A000002/trips/summary"
    @GET("car/ifvsi/devices/{deviceId}/trips/summary")
    Call<TripSummary> getTrip(@Path("deviceId") String deviceId);


    // "car/ifvsi/devices/CAR_A00A000002/trips?startDate=2015-10-13&endDate=2015-10-13"
    @GET("car/ifvsi/devices/{deviceId}/trips?startDate=2015-10-15&endDate=2015-10-16")
    Call<List<Trip>> getTripHistory(@Path("deviceId") String deviceId);
}
